od_printf("\n\r`bright cyan`Do you wish to upgrade your armor? [Y/N]`cyan`");
choice2=od_get_answer("YN\n\r");
switch(choice2)
{
case 'N':
break;
case 'Y':
default:
if(current.armor_strength<2000000000)//<-this has changed. Heck if I remember. <G>
{
if(current.credits>=100000000)
{
current.credits-=100000000;
current.armor_strength+=50000;
sprintf(number,"%ld",current.armor_strength);
change();
od_printf("\n\rOk, your armor has been upgraded to `bright cyan`%s!`cyan`",number);
}
else
od_printf("\n\rYou don't have enough money!");
}
else
od_printf("\n\rSorry, your armor is MAXED!!!!");
}
}
WaitForEnter();
break;
case 'I':
if(current.weapon_strength<1000) //<-this may be different now.
od_printf("\n\rWe only upgrade `bright cyan`Crowley's Cannons`cyan` or better here!");
else
{
od_printf("\n\rI'll give you a great deal on an `bright cyan`O.S.S.C Overcharge Pack!`cyan`");
od_printf("\n\rOnly cost you $`bright cyan`100,000,000`cyan` for an increase from `bright cyan`%d`cyan` to `bright cyan`%d`cyan`!",current.weapon_strength,current.weapon_strength+3);
od_printf("\n\r`bright cyan`Do you wish to buy one? [Y/N]`cyan` ");
choice2=od_get_answer("YN\n\r");
switch(choice2)
{
case 'N':
break;
case 'Y':
default:
if(current.weapon_strength<125)
{
if(current.credits>=100000000)
{
od_printf("\n\rOk, your `bright cyan`%s`cyan` has been upgraded!",current.weapon);
current.credits-=100000000;
current.weapon_strength+=3;
}
else
od_printf("\n\rYou don't have enough money!");
}
else
od_printf("\n\rSorry, your weapon is MAXED!!!!");
}
}
WaitForEnter();
break;
case 'X':
default:
choice='X';
break;
}
}while(choice!='X');
}
void r_player_file(void) //initial read of the player file